<template>
	<view>
		<!-- <zetank-swiper style="margin: 32rpx;" :height="165" :radius="20" :imageList="imageList" type="default" @clickImg="clickImg"></zetank-swiper> -->
		<image :src="$fun.imgUrl(infoList.images)" style="width: 100%;" mode="widthFix"></image>
		<view class="info_d" v-html="infoList.contents">
			<!-- <view class="info_item">
				<view class="l">
					招募范围：
				</view>
				<view class="r">
					{{infoList.recruit}}
				</view>
			</view>
			<view class="info_item">
				<view class="l">
					结算周期：
				</view>
				<view class="r">
					{{infoList.knot}}
				</view>
			</view>
			<view class="info_item">
				<view class="l">
					支持架构：
				</view>
				<view class="r">
					{{infoList.support}}
				</view>
			</view>
			<view class="info_item">
				<view class="l">
					适用场景：
				</view>
				<view class="r">
					{{infoList.scenes}}
				</view>
			</view>
			<view class="info_item">
				<view class="l">
					优 点：
				</view>
				<view class="r">
					{{infoList.merit}}
				</view>
			</view>
			<view class="info_item">
				<view class="l">
					推荐配置：
				</view>
				<view class="r">
					{{infoList.desc}}
				</view>
			</view> -->
		</view>
<!-- 		<view class="bottom_box" >
			<view class="button">
				详细教程
			</view>
		</view> -->
		<view class="bottom_box" @click="$fun.jump(`/pageB/createOrder?id=${infoList.id}`)">
			<view class="button">
				购买设备
			</view>
		</view>
	</view>
</template>

<script>
	// import zetankSwiper from"@/components/zetank-swiper/components/zetank-swiper/zetank-swiper.vue"
	export default {
		// components:{zetankSwiper},
		data() {
			return {
				infoList:{},
				imageList:[]
			};
		},
		onLoad(option) {
			this.$fun.ajax.post('goods/index',{id:option.id}).then(res=>{
				// console.log(res)
				this.infoList = res.data
				let arr = res.data.images.split(',')
				let arr1 =[]
				for(var i=0;i<arr.length;i++){
					arr1.push({src:this.$fun.imgUrl(arr[i]),id:i})
				}
				this.imageList = arr1
				
			})
		},
		methods:{
			
		}
	}
</script>

<style lang="scss">
	.top_img {
		height: 200rpx;
		background: linear-gradient(90deg, #8EB8E0 0%, #7096BE 100%);
	
	image {
			width: 100%;
			height: 100%;
		}
	}

	.info_d {
		margin: 20rpx 30rpx;
		box-sizing: border-box;

		.info_item {
			padding: 40rpx 10rpx;
			display: flex;
			color: #333333;
			font-size: 24rpx;
			border-bottom: 2rpx solid #999999;

			.l {
				width: 150rpx;
			}

			.r {
				width: calc(100% - 150rpx);
			}
		}
	}
	.bottom_box{
		text-align: center;
		.button{
			display: inline-block;
			padding: 23rpx 100rpx;
			background: #FFFFFF;
			border: 2rpx solid #1E84F1;
			border-radius: 35rpx;
			font-size: 24rpx;
			font-family: Microsoft YaHei;
			font-weight: bold;
			color: #1E84F1;
		}
	}
</style>
